package org.jeecg.prod.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 工单BOM主表(MesBomHeaderWo)实体类
 *
 * @author 李挺
 * @since 2024-09-18 15:28:51
 */
@Data
@TableName("mes_bom_header_wo")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_bom_header_wo对象", description = "工单BOM主表")
public class MesBomHeaderWo implements Serializable {
    private static final long serialVersionUID = 710390442355947025L;
/**
     *  更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
/**
     * 工单ID
     */
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    @MppMultiId
    @TableField(value = "woid")
    private String woid;
/**
     * 工单ID
     */
    private String jdeid;
/**
     * 产线或者产线组
     */
    @Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    @MppMultiId
    @TableField(value = "line")
    private String line;
/**
     * 产品或者产品组
     */
    private String partno;
/**
     * 数量
     */
    @Excel(name = "工单计划数量", width = 15)
    @ApiModelProperty(value = "工单计划数量")
    private BigDecimal qty;
/**
     * 版本号
     */
    private String rev;
/**
     * 英文描述
     */
    private String descEn;
/**
     * 本地描述
     */
    private String descLocal;
/**
     * 客户零件号
     */
    private String custPartno;
/**
     * MES描述
     */
    private String descMes;
/**
     * 图号
     */
    private String drawingno;
/**
     * 产品分组
     */
    private String pnGroup;
/**
     * 产品ID
     */
    private Double parttypeid;
/**
     * 工单状态。1: 运行， 2： 关闭， 其它: 未运行
     */
    private String status;

}

